﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Composite.TransparentDept
{
    public class TransparentLeafDept : ITransparentDept
    {
        string name;
        public TransparentLeafDept(string name)
        {
            this.name = name;
        }
        public void AddDept(ITransparentDept dept)
        {
            System.Console.Write("cannot add dept.");
        }
        public void RemoveDept(ITransparentDept dept)
        {
            System.Console.Write("cannot remove dept.");
        }
        public List<ITransparentDept> GetChild()
        {
            System.Console.Write("there is no dept");
            return null;
        }
        public void Display(string pre)
        {
            System.Console.Write(pre+name + "\n");
        }
    }
}
